﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yes.Application.Category.Dto
{
    public class CategoryAddDto
    {
        public int Id { get; set; }

        /// <summary>
        /// 分类名
        /// </summary>
        [Required]
        [StringLength(50,ErrorMessage ="分类名最长为50字符")]
        public string Name { get; set; }


        /// <summary>
        /// 排序值
        /// </summary>
        public int SortId { get; set; }
    }
}
